const Router = require('koa-router');
const router = new Router();
const tools = require("../../tools/tool");


// 七牛下载地址
router.post('/common/getDownUrl', async ctx => {
    let fileName = ctx.request.body.fileName
    let salesName = ctx.user.name
    let url = tools.getPicUrl(fileName, salesName, true)
    return ctx.suc('', url)
})





module.exports = router;